package com.senlingspace.web.controller.headquarters;


import com.senlingspace.system.domain.dto.FzShopPosDto;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.senlingspace.common.annotation.Log;
import com.senlingspace.common.core.controller.BaseController;
import com.senlingspace.common.core.domain.AjaxResult;
import com.senlingspace.common.enums.BusinessType;
import com.senlingspace.system.service.ISlkjShopPosService;

/**
 * 分账比例-门店pos关系Controller
 * 
 * @author wangliang
 * @date 2024-07-15
 */
@RestController
@RequestMapping("/system/posShop")
public class SlkjShopPosController extends BaseController
{
    @Autowired
    private ISlkjShopPosService slkjShopPosService;


    /**
     * 修改分账比例-票务系统
     */
    @PreAuthorize("@ss.hasPermi('system:posShop:edit')")
    @Log(title = "分账比例-门店pos关系", businessType = BusinessType.UPDATE)
    @PutMapping
    public AjaxResult edit(@RequestBody FzShopPosDto posDto)
    {
        return toAjax(slkjShopPosService.updateSlkjShopPosDto(posDto));
    }


}
